﻿<div class="main">
    <form class=" form-group-sm form ui-validForm ui-formBind" method="post" data-source="@Model">
        <div class="form-group">
            <label class="control-label" for="name">表名</label>
            <div class="controls">
                <input type="text" maxlength="50" name="name" id="name" data-validate="dataType:'string',nullMsg:'请填写表名！',errorMsg:'表名格式错误！'" class="form-control ui-edit-readonly" />
                <span class="help-block">系统表必须填写已经存在的表。</span>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label" for="remark">标识</label>
            <div class="controls">
                <input placeholder="仅用于标识" type="text" name="remark" id="remark" maxlength="50" data-validate="dataType:'*',nullMsg:'请填写标识！'" class="form-control" />
                <span class="help-block"></span>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label" for="remark">字段扩展</label>
            <div class="controls form-inline">
                <input type="checkbox" name="canExpand" id="canExpand" value="1" />可添加自定义字段
                <span class="help-block">如果视图页面没有预先添加自定义字段的表单，非开发人员请勿修改。</span>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label" for="delete_protect">删除保护</label>
            <div class="controls form-inline">
                <input type="checkbox" name="deleteProtect" id="deleteProtect" value="1" checked />启用
                <span class="help-block">启用后列表页不能直接删除</span>
            </div>
        </div>


        <div class="submit-footerbar">
            <label class="control-label"></label>
            <div class="controls">
                <input type="hidden" name="id" id="id" />
                <button type="button" class="btn btn-sm  btn-primary ui-pagePost" data-custom-params="url:'@Url.ActionUrl()',callBack:'PostRefreshBack'">提交</button>
                <button type="button" class="btn btn-sm btn-default ui-closeDialog">关闭</button>
            </div>
        </div>
    </form>
</div>